puts "/*"
puts " * Begin genrated code"
puts " */"

puts

puts "/*"
puts " * handlers"
puts " */"

256.times { |x|
  s = x.to_s
  puts 'asmlinkage void int' + s + '(void);'
  puts 'asm("int' + s + ':");'
  puts 'asm("movq $' + s + ', int_info");'
  puts 'asm("jmp error_code_check");'
  puts
}

puts

puts "/*"
puts " * End of genrated code"
puts " */"